package model;


 
//1,通过system. out提示信息,采用scanner录入学生信息,保存至集合。
//2,查看全部学生信息。
//3,按学生姓名查询该学生信息。
//4,创建学生类,记录保存至集合。
//5添加专业,按专业查询学生信息
public class PersonModel {
	
/**
	 * 
	 */ 


private int  id; //id
private String username; //账户
private String password;//密码
private String sex; //性别
private String hobby;//爱好
private String address;//专业类；
public int getId() {
	return id;
}
public void setId(int id) {
	this.id = id;
}
public String getUsername() {
	return username;
}
public void setUsername(String username) {
	this.username = username;
}
public String getPassword() {
	return password;
}
public void setPassword(String password) {
	this.password = password;
}
public String getSex() {
	return sex;
}
public void setSex(String sex) {
	this.sex = sex;
}
public String getHobby() {
	return hobby;
}
public void setHobby(String hobby) {
	this.hobby = hobby;
}
public String getAddress() {
	return address;
}
public void setAddress(String address) {
	this.address = address;
}
@Override
public String toString() {
	return "Person [id=" + id + ", username=" + username + ", password=" + password + ", sex=" + sex + ", hobby="
			+ hobby + ", address=" + address + "]";
}
public PersonModel(int id, String username, String password, String sex, String hobby, String address) {
	super();
	this.id = id;
	this.username = username;
	this.password = password;
	this.sex = sex;
	this.hobby = hobby;
	this.address = address;
}
public PersonModel() {
	super();
	// TODO Auto-generated constructor stub
}



	
}
